package com.chii.order.service;

import com.chii.order.po.Order;

import java.util.List;

public interface OrderService {



    /**
     * 生成订单信息
     * @param uid
     * @return 订单加密
     */
    Order createOrder(Integer uid,String source);
    /**
     * 取消订单.
     *
     * @param uid the login auth dto
     * @param orderNo      the order no
     *
     * @return the int
     */
    int cancelOrder(Integer uid, String orderNo);

    /**
     * 获取订单.
     *
     * @param orderNo      the order no
     *
     * @return the int
     */
    Order getOrder(String orderNo);

    /**
     * 获取订单.
     *
     * @param uid      the order no
     *
     * @return the int
     */
    List<Order> getOrderByUserId(Integer uid);
}
